package co.fitstart.admin.entity.report;

import co.fitstart.entity.user.enums.StudentTargetType;

/**
 * 
 * @author haiyan_xiao
 *
 */
public class InbodyTargetReport {
    
    private String mobile;
    
    /** 目标类型 */
    private int targetType;
    
    /** 体重变化 */
    private Integer weightChange;
    
    /** 体脂变化 */
    private Integer bfrChange;
    
    /** 具体目标 */
    private String description;
    
    public InbodyTargetReport() {
        
    }

    /**
     * 
     * @return
     */
    public String getTarget() {
        StudentTargetType type = StudentTargetType.ordinralOf(targetType);
        if(type != null) {
            if(type.isBodyFatRateReducing()) {
                if(this.weightChange == null || this.weightChange == 0) {
                    return "体脂减少" + bfrChange + "%";
                } else {
                    return "体脂减少" + bfrChange + "%，体重减少" + weightChange + "KG";
                }
            } else if(type.isWeightLosing()) {
                return "体重减少" + weightChange + "kg";
            } else if(type.isMuscleBuilding()) {
                return "体脂减少" + bfrChange + "%，体重增加" + weightChange + "KG";
            } else {
                return type.getDescription() + ":" + description;
            }
        } else {
            return null;
        }
    }

    /**
     * @return the mobile
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * @param mobile the mobile to set
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * @return the targetType
     */
    public int getTargetType() {
        return targetType;
    }

    /**
     * @param targetType the targetType to set
     */
    public void setTargetType(int targetType) {
        this.targetType = targetType;
    }

    /**
     * @return the weightChange
     */
    public Integer getWeightChange() {
        return weightChange;
    }

    /**
     * @param weightChange the weightChange to set
     */
    public void setWeightChange(Integer weightChange) {
        this.weightChange = weightChange;
    }

    /**
     * @return the bfrChange
     */
    public Integer getBfrChange() {
        return bfrChange;
    }

    /**
     * @param bfrChange the bfrChange to set
     */
    public void setBfrChange(Integer bfrChange) {
        this.bfrChange = bfrChange;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
